class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :title
      t.text :description
      t.string :front_image
      t.string :left_image
      t.string :right_image
      t.string :inside_image
      t.decimal :price, :precision => 8, :scale => 2
      t.string :latitude
      t.string :longitude
      t.string :contact
      t.string :phone
      t.string :mobile
      t.text :email
      t.text :yahoo
      t.text :skype

      t.timestamps
    end
  end

  def self.down
    drop_table :products
  end
end
